package com.gexiaobao.pigeon.app.model.bean

import android.os.Parcelable
import kotlinx.android.parcel.Parcelize

/**
 * @Author      : hxw
 * @Date        : 2023/3/3 14:45
 * @Describe    :
 */
@Parcelize
class GoodsDetailCouponListResponse(

    var total: Int = 0,
    var list: ArrayList<ListBean> = ArrayList()

) : Parcelable {

    /**
     * 数据是否为空
     */
    fun isEmpty() = list == null || (list as List<*>).isEmpty()

    @Parcelize
    class ListBean(

        var id: Int = 0,
        var couponName: String = "",
        var money: Double = 0.00,
        var condition: Double = 0.00,
        var effEnd: String = "",
        var useTypeLabel: String = "",
        var isAllow: Boolean = false,
        var isChecked: Boolean = false,
        var reason: String = "",
        var aboutName: String = "",
        var useType: Int = 0,//1全场通用，2指定类型，3指定商品
        var aboutId: Int = 0,
        var selectId: Int = 0

    ) : Parcelable
}